﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DisplayBoardInfo.Network.Messages;

namespace DisplayBoardInfo.Network
{
    public class MessageEventArgs : EventArgs
    {
        private NetworkMessage message;
        private int reciver = -1;

        public MessageEventArgs(NetworkMessage message)
        {
            this.message = message;
        }

        public MessageEventArgs(int reciver, NetworkMessage message)
        {
            this.message = message;
            this.reciver = reciver;
        }

        public NetworkMessage Message
        {
            get { return message; }
        }

        public int Reciver
        {
            get { return reciver; }
        }
    }
}
